<%@ page pageEncoding="UTF-8"%>
<%@ page import="com.hwhp.entity.*"%>
<%@ page import="java.util.*"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%
List<SLstOfVal> list=(List<SLstOfVal> )request.getAttribute("listLst");
String id=(String)request.getAttribute("id");
 %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
	<HEAD>
		<LINK href="<%=basePath%>css/milkwhite.css" type=TEXT/CSS
			rel=StyleSheet></LINK>
		<LINK href="<%=basePath%>css/htmilkwhite.css" type=TEXT/CSS
			rel=StyleSheet></LINK>
		<LINK href="<%=basePath%>css/dhtmlxgrid.css" type=TEXT/CSS
			rel=StyleSheet></LINK>
		<SCRIPT src="<%=basePath%>js/list/dhtmlxcommon.js"
			type=text/javascript></SCRIPT>
		<SCRIPT src="<%=basePath%>js/list/dhtmlxgrid.js" type=text/javascript></SCRIPT>
		<SCRIPT src="<%=basePath%>js/list/dhtmlxgridcell.js"
			type=text/javascript></SCRIPT>
		<SCRIPT src="<%=basePath%>js/list/dhtmlxgrid_start.js"
			type=text/javascript></SCRIPT>
	</HEAD>
	<BODY style="MARGIN: 0px; OVERFLOW: visible">
		<FORM id="formlist" name="formlist" action="" method="post">
			<TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%"
				border=0>
				<TBODY>
					<TR>
						<TD height=20></TD>
						<TD height=20></TD>
						<TD height=20></TD>
					</TR>
					<TR>
						<TD class=middlelinel></TD>
						<TD height=20>
							<!-- 搜索 -->
							<TABLE cellSpacing=0 cellPadding=0 border=0 width="100%">
								<TBODY>
									<TR>
										<TD style="WIDTH: 70px" align=right>
											类型:
										</TD>
										<TD style="WIDTH: 80px" align=right>
											<INPUT id="type" name=type>
										</TD>
										<TD style="WIDTH: 8px"></TD>
										<TD class=searchheight>
											<TABLE class=button onmouseover="this.className='buthot'"
												onmouseout="this.className='button'" cellSpacing=0
												cellPadding=0 border=0>
												<TBODY>
													<TR onclick=document.forms[0].submit();>
														<TD class=buttoncelerity></TD>
														<TD class=buttonmiddle>
															
														</TD>
														<TD class=buttonright></TD>
													</TR>
												</TBODY>
											</TABLE>
										</TD>
										<TD width=5></TD>
										<TD>
											
										</TD>
										<TD vAlign=top align="right">
											<table border='0' cellpadding='2' cellspacing='0'>
												<tr height="20">
													<td
														style='background-image:url(<%=basePath%>images/button/w_buttoncelerity1.gif);width:22px;'></td>
													<td
														style='background-image:url(<%=basePath%>images/button/w_buttonmiddle1.gif);cursor: hand;'">
														<a href="/chis/manager/list!preListAdd.action">新增</a>
													</td>
													<td>
														</td>
													<td></td>
													<td>
														
													</td>
													<td></td>
														<td></td>
														<td>
														
													</td>
													<td>
														</td>
												</tr>
											</table>
										</TD>
									</TR>
								</TBODY>
							</TABLE>
						</TD>
						<TD class=middleliner></TD>
					</TR>
					<TR>
						<TD class=middlelinel></TD>
						<TD
							style="BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; BORDER-LEFT: 1px solid; BORDER-BOTTOM: 1px solid"
							vAlign=top>
							<TABLE class=dhtmlxGrid id=gridbox height="100%" width="100%">
								<TBODY>
									<TR>
									    <TD noWrap type="ro" style="width:30">
									       <INPUT class=input3 id=alldepartid name=departid value="" type="checkbox">
										</TD>
										<TD noWrap type="ro" style="width:50">
									         序号
										</TD>
									    <TD noWrap type="ro">
									               类型
										</TD>
										<TD noWrap type="ro">
											显示值
										</TD>
										<TD noWrap type="ro">
											代码
										</TD>
										<TD noWrap type="ro">
											语言名称
										</TD>
										<TD noWrap type="ro">
											序号
										</TD>
										<TD noWrap type="ro">
											活动
										</TD>
										<TD noWrap type="ro" style="width:80">
											操作
										</TD>
									</TR>
									<%
									 if(list!=null&&list.size()>0){
									  int i=1;
									  for(SLstOfVal lstObj:list){
									 %>
									<TR>
									    <TD noWrap>
									       <INPUT class=input3 id=alldepartid name=departid value="" type="checkbox">
										</TD>
									    <TD noWrap align="center">
									       <%=i%>
										</TD>
										<TD noWrap>
										    <%="".equals(lstObj.getType())?" ":lstObj.getType() %>
										</TD>
										<TD noWrap>
											<%="".equals(lstObj.getName())?" ":lstObj.getName() %>
										</TD>
										<TD noWrap>
											<%="".equals(lstObj.getPycode())?" ":lstObj.getPycode() %>
										</TD>
										<TD noWrap>
											<%="".equals(lstObj.getLanguage())?" ":lstObj.getLanguage() %>
										</TD>
										<TD noWrap>
											<%="".equals(lstObj.getSn())?" ":lstObj.getSn() %>
										</TD>
										<TD noWrap>
											<%="".equals(lstObj.getActive())?" ":lstObj.getActive() %>
										</TD>
										<TD noWrap align="center">
											<img src="<%=basePath%>images/button/edit.gif" style="cursor: hand" onclick="editProcess('<%=lstObj.getId() %>')">&nbsp;&nbsp;
											<img src="<%=basePath%>images/button/del.gif" title="删除" style="cursor: hand" onclick="deleteProcess('<%=lstObj.getId() %>')">
										</TD>
									</TR>
									<%
									 i++;
									 }
									 }else{
									 %>
									 
									 <%
									 }
									  %>
								</TBODY>
							</TABLE>
						</TD>
					<TD class=middleliner></TD>
					</TR>
					<TR>
						<TD class=middlebottoml></TD>
						<TD class=middlebottomm></TD>
						<TD class=middlebottomr></TD>
					</TR>
				</TBODY>
			</TABLE>
		</FORM>
	</BODY>
	<SCRIPT type=text/javascript>
		function editProcess(id){
		  formlist.action="/chis/manager/list!preUpdateLst.action?id="+id;
		  formlist.submit();
		}
		
		function deleteProcess(id){
		  formlist.action="/chis/manager/list!deleteLst.action?id="+id;
		  formlist.submit();
		}
	</SCRIPT>
</HTML>
